﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using crm_dal.Objects;
using crm_library.Javascript;

namespace crm_web.DataPages
{
    public partial class ViewSaleItem : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            try
            {

                crm_dal.Objects.SaleItem displayViewSaleItem = new crm_dal.Objects.SaleItem(Convert.ToInt32(HttpContext.Current.Session["Selection"]));
                lblProductID.Text = displayViewSaleItem.ProductID.ToString();
                lblSaleID.Text = displayViewSaleItem.SaleID.ToString();
                lblQuantity.Text = displayViewSaleItem.Quantity.ToString();
                lblPrice.Text = displayViewSaleItem.Price.ToString();
                lblTotal.Text = displayViewSaleItem.Total.ToString();
            }
            catch (Exception ex)
            {
                Alert.Show(ex.Message, Alert.AlertMessageType.Error);
            }
        }
    }
}